<template>
  <div class="item">
    <div class="title">{{ title }}</div>
    <div class="content">{{ content }}</div>
  </div>
</template>

<script>
export default {
  props: {
    title: String,
    content: String
  }
}
</script>

<style lang="less" scoped>
.item {
  display: flex;
  height: .44rem;
  line-height: .44rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: .1rem;
  margin-bottom: .2rem;
  .title {
    width: 1rem;
    font-size: .18rem;
    text-align: center;
    margin-right: .15rem;
    color: #ed4040;
  }
  .content {
    width: 2.2rem;
    font-size: .14rem;
    white-space: nowrap;  //不进行换行
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
</style>